﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SimpleBlog.Components.Common {
	public class Links {

		public static string EditEntryLink(int tabID, int moduleID, int entryID)
		{
			return DotNetNuke.Common.Globals.NavigateURL(tabID, "EditEntry", "mid=" + moduleID, "EntryID=" + entryID);
		}

		public static string ViewControlLink(int tabID, int moduleID, Constants.PageScope control, int keyID)
		{
			return keyID != -1 ? DotNetNuke.Common.Globals.NavigateURL(tabID, "", "view=" + (int)control, "id=" + keyID) : DotNetNuke.Common.Globals.NavigateURL(tabID, "", "view=" + (int)control);
		}

	}
}